package com.dbpms.pj.sys.service;

import com.dbpms.pj.common.pojo.CheckBox;
import com.dbpms.pj.common.pojo.PageObject;
import com.dbpms.pj.sys.pojo.SysRole;
import com.dbpms.pj.sys.pojo.SysRoleMenu;

import java.util.List;


/**
 * @Author: Song Yu
 * @Date: 2020/10/20 9:56
 */
public interface SysRoleService {

    PageObject<SysRole> findPageObjects(String username, Integer pageCurrent);

    int deleteObject(Integer id);

    int saveObject(SysRole entity,Integer[] menuIds);

    int updateObject(SysRole entity,Integer[] menuIds);

    SysRoleMenu findById(Integer id);

    List<CheckBox> findObjects();
}
